package com.saleSystem.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.saleSystem.pojo.Content;

@Repository
public interface ContentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Content record);

    int insertSelective(Content record);

    Content selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Content record);

    int updateByPrimaryKey(Content record);
    
    List<Content> selectAllContent();
    
    Content selectContent(@Param("title") String title,@Param("image") String image,@Param("summary")String summary);
}